package com.xxr.mom.ci.charging.interworking.vo.api;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * 申请token响应类
 */
@Data
public class AccessTokenResponse {

    /**
     * 运营商ID
     */
    @JSONField(name = "OperatorID")
    private String operatorID;
    /**
     * 成功状态
     * <p>
     * 0∶成功;
     * 1∶失败
     */
    @JSONField(name = "SucStat")
    private Integer sucStat;
    /**
     * 全局唯一凭证
     */
    @JSONField(name = "AccessToken")
    private String accessToken;
    /**
     * 凭证有效期，单位秒
     */
    @JSONField(name = "TokenAvailableTime")
    private Long tokenAvailableTime;
    /**
     * 失败原因
     * <p>
     * 0∶无;
     * 1∶无此运营商;
     * 2∶密钥错误;
     * 3～99∶自定义
     */
    @JSONField(name = "FailStat")
    private Integer failStat;
}
